/*
 * XML Type:  XPictureBox
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XPictureBox
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XPictureBox(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XPictureBoxImpl extends com.seedwill.xul.widget.impl.XInputImpl implements com.seedwill.xul.widget.XPictureBox
{
    private static final long serialVersionUID = 1L;
    
    public XPictureBoxImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PICTUREPATH$0 = 
        new javax.xml.namespace.QName("", "picturePath");
    private static final javax.xml.namespace.QName PICTURE$2 = 
        new javax.xml.namespace.QName("", "picture");
    private static final javax.xml.namespace.QName PICTURESAFENAME$4 = 
        new javax.xml.namespace.QName("", "pictureSafeName");
    
    
    /**
     * Gets the "picturePath" element
     */
    public java.lang.String getPicturePath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PICTUREPATH$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "picturePath" element
     */
    public org.apache.xmlbeans.XmlString xgetPicturePath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PICTUREPATH$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "picturePath" element
     */
    public boolean isSetPicturePath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PICTUREPATH$0) != 0;
        }
    }
    
    /**
     * Sets the "picturePath" element
     */
    public void setPicturePath(java.lang.String picturePath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PICTUREPATH$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PICTUREPATH$0);
            }
            target.setStringValue(picturePath);
        }
    }
    
    /**
     * Sets (as xml) the "picturePath" element
     */
    public void xsetPicturePath(org.apache.xmlbeans.XmlString picturePath)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PICTUREPATH$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PICTUREPATH$0);
            }
            target.set(picturePath);
        }
    }
    
    /**
     * Unsets the "picturePath" element
     */
    public void unsetPicturePath()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PICTUREPATH$0, 0);
        }
    }
    
    /**
     * Gets the "picture" element
     */
    public byte[] getPicture()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PICTURE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getByteArrayValue();
        }
    }
    
    /**
     * Gets (as xml) the "picture" element
     */
    public org.apache.xmlbeans.XmlBase64Binary xgetPicture()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBase64Binary target = null;
            target = (org.apache.xmlbeans.XmlBase64Binary)get_store().find_element_user(PICTURE$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "picture" element
     */
    public boolean isSetPicture()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PICTURE$2) != 0;
        }
    }
    
    /**
     * Sets the "picture" element
     */
    public void setPicture(byte[] picture)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PICTURE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PICTURE$2);
            }
            target.setByteArrayValue(picture);
        }
    }
    
    /**
     * Sets (as xml) the "picture" element
     */
    public void xsetPicture(org.apache.xmlbeans.XmlBase64Binary picture)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBase64Binary target = null;
            target = (org.apache.xmlbeans.XmlBase64Binary)get_store().find_element_user(PICTURE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBase64Binary)get_store().add_element_user(PICTURE$2);
            }
            target.set(picture);
        }
    }
    
    /**
     * Unsets the "picture" element
     */
    public void unsetPicture()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PICTURE$2, 0);
        }
    }
    
    /**
     * Gets the "pictureSafeName" element
     */
    public java.lang.String getPictureSafeName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PICTURESAFENAME$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "pictureSafeName" element
     */
    public org.apache.xmlbeans.XmlString xgetPictureSafeName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PICTURESAFENAME$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "pictureSafeName" element
     */
    public boolean isSetPictureSafeName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PICTURESAFENAME$4) != 0;
        }
    }
    
    /**
     * Sets the "pictureSafeName" element
     */
    public void setPictureSafeName(java.lang.String pictureSafeName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PICTURESAFENAME$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PICTURESAFENAME$4);
            }
            target.setStringValue(pictureSafeName);
        }
    }
    
    /**
     * Sets (as xml) the "pictureSafeName" element
     */
    public void xsetPictureSafeName(org.apache.xmlbeans.XmlString pictureSafeName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PICTURESAFENAME$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PICTURESAFENAME$4);
            }
            target.set(pictureSafeName);
        }
    }
    
    /**
     * Unsets the "pictureSafeName" element
     */
    public void unsetPictureSafeName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PICTURESAFENAME$4, 0);
        }
    }
}
